#pragma once

#include "../Common/Common.h"
#include "../Scene/SceneCenter.h"
#include <osg/AutoTransform>
#include <osg/Geode>

class PSDF_CORE_DLL_DECL Label : public osg::Group
{
public:
	Label(const string& content,
		  unsigned short size,
		  float x, float y, float z,
		  float r = 0, float g = 0, float b = 0,
		  TextBase::AlignmentType align = TextBase::CENTER_CENTER);

	Label(osgText::Text* text);
	virtual ~Label() {}

	void		setImageMark(const string& imageFile);
	void		setNodeMark(Node* node);

private:
	ref_ptr<AutoTransform>	_autoTrans;
	ref_ptr<Text>			_text;
};